package com.kucowka.struts.listeners;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SessionListener implements HttpSessionListener {

	private static final Logger logger = LoggerFactory
			.getLogger(SessionListener.class);

	@Override
	public void sessionCreated(HttpSessionEvent se) {
		logger.info("New session: " + se.getSession().getId() + " was created");
	}

	@Override
	public void sessionDestroyed(HttpSessionEvent se) {
		logger.info("Session: " + se.getSession().getId() + " was destroyed");
	}

}
